package com.ruoyi.spi.controller;

import com.ruoyi.business.common.core.controller.BsBaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.spi.service.fileupload.impl.FileUploadServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @author twilight
 * @since V1.0
 */
@Api(tags = "spi测试接口")
@RestController
@RequestMapping("/service/spi")
public class SPIController extends BsBaseController
{
    @Autowired
    private FileUploadServiceImpl fuService;
    /**
     * upload
     */
    @ApiOperation(value = "spi测试接口")
    @GetMapping("/upload")
    public TableDataInfo upload()
    {
        fuService.upload(11);
        return getDataTable(new ArrayList<>());
    }
}